<?php $this->Html->addCrumb('Offices', '/Offices'); ?>
<?php $this->Html->addCrumb($this->Form->value('Office.o_name'), '/Offices/view/'.$this->Form->value('Office.o_id')); ?>
<?php $this->Html->addCrumb('Edit'); ?>
<div class="actions">
	<h3><?php echo __('Actions'); ?></h3>
	<ul>

		<li><?php echo $this->Form->postLink(__('Delete'), array('action' => 'delete', $this->Form->value('Office.o_id')), null, __('Are you sure you want to delete %s office?', $this->Form->value('Office.o_name'))); ?></li>
		<li><?php echo $this->Html->link(__('List Offices'), array('action' => 'index')); ?></li>
		<li><?php echo $this->Html->link(__('List Interactions'), array('controller' => 'interactions', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Interaction'), array('controller' => 'interactions', 'action' => 'add')); ?> </li>
	</ul>
</div>

<div class="offices form">
<?php echo $this->Form->create('Office'); ?>
	<fieldset>
		<legend><?php echo __('Edit Office'); ?></legend>
	<?php
		echo $this->Form->input('o_id');
		echo $this->Form->input('o_name', array(
			'label' => 'Office Name',
			'div' => 'formfield',
			'error' => array(
                'wrap' => 'div', 
                'class' => 'formerror')));
		echo $this->Form->input('o_address', array(
			'label' => 'Address',
			'div' => 'formfield',
			'error' => array(
                'wrap' => 'div', 
                'class' => 'formerror')));
		echo $this->Form->input('o_postcode', array(
			'label' => 'Postcode',
			'div' => 'formfield',
			'error' => array(
                'wrap' => 'div', 
                'class' => 'formerror')));
		echo $this->Form->input('o_phone', array(
			'label' => 'Phone',
			'div' => 'formfield',
			'error' => array(
                'wrap' => 'div', 
                'class' => 'formerror')));
		echo $this->Form->input('o_email', array(
			'label' => 'Email',
			'div' => 'formfield',
			'error' => array(
                'wrap' => 'div', 
                'class' => 'formerror')));
	?>
	</fieldset>
<?php echo $this->Form->end(__('Submit')); ?>
</div>

